package com.example.base.base.application

import android.app.Application
import android.content.Context

/**
 * @Description
 * @department 城市元宇宙组
 * @Author niushilong
 * @Date 2024-03-30 14:31
 */
open class BaseApplication : Application() {

    init {
        instance = this
    }
    // 静态代码块
    companion object{
        private var instance: BaseApplication? = null

        fun applicationContext(): Context {
            return instance!!.applicationContext;
        }
    }
}